
#include <iostream>
#include <string>
using namespace std;

class PhoneCard {                                               //define a class holding a person's information
public:
	PhoneCard() {}
	PhoneCard(char,int,string,string,string,string);

	char GetSex() const {return _sex;}
	int GetAge() const {return _age;}
	string GetHomeAddress() const {return _home_address;}
	string GetWorkAddress() const {return _work_address;}
	string GetMobilePhone() const {return _mobile_phone;}
	string GetHomePhone() const {return _home_phone;}
	void ShowCard();
	
private:
	char _sex;
	int _age;
	string _home_address;
	string _work_address;
	string _mobile_phone;
	string _home_phone;
};

PhoneCard::PhoneCard
(char sex,int age,string home_address,string work_address,string mobile_phone,string home_phone) 
: (_sex=sex),
  (_age=age),
  (_home_address=home_address),
  (_work_address=work_address),
  (_mobile_phone=mobile_phone),
  (_home_phone=home_phone) { }
  	


void PhoneCard::ShowCard() {
	cout << "sex:\t" << _sex << "\n"
		 << "age:\t" << _age << "\n"
		 << "home address:\t" << _home_address << "\n"
		 << "work address:\t" << _work_address << "\n"
		 << "mobile phone number:\t" << _mobile_phone << "\n"
		 << "home phone number:\t" << _home_phone 
		 << endl;
}
